

<script type="text/javascript">
function checkform()
  {
	 
	var content= document.getElementById('content');
	var email= document.getElementById('email');
	var name= document.getElementById('name');
	var link= document.getElementById('link');

	
	

	
	if(name.value=='') 
	 {
	 alert('Tieu de  cho san pham');
		 name.focus();
		 return false;
	 }
	 	
	  if(email.value=='') 
	 {
		 alert('Chưa có hình cho Phần mềm');
		 email.focus();
		 return false;
	 }
	 if(link.value=='') 
	 {
	 alert('chưa có file ');
		 link.focus();
		 return false;
	 }
	 
	  if(content.value=='') 
	 {
	 content('chưa có file ');
		 link.focus();
		 return false;
	 }
	 
	
}

</script>
</head>
<center>

<div id="table">
<form action="index.php?option=lienhe&amp;cat=xuly" method="post" enctype="multipart/form-data" name="form1">
<table align="center" width="818" border="10px" bordercolor="#FF">
 
   <tr bgcolor="#666666">
      <td colspan="2" align="center" valign="middle" bgcolor="#FFFFFF"><strong><h1>THÊM  Lien hệ</h1></strong></td>
    </tr>
    <tr >
      <td width="150" align="center" valign="middle">Tiêu đề</td>
      <td align="left" valign="middle"><label for="name"></label>
      <input name="name" type="text" id="name" size="50"></td>
    </tr>
    <tr >
      <td width="150" align="center" valign="middle">email</td>
      <td align="left" valign="middle"><label for="email"></label>
      <input type="text" name="email" id="email"></td>
    </tr>
  <tr >
      <td width="150" align="center" valign="middle">Số DT</td>
      <td align="left" valign="middle"><label for="sdt"></label>
      <input type="text" name="sdt" id="sdt"></td>
    </tr>
    <tr >
      <td width="150" align="center" valign="middle">Nội dung</td>
      <td align="left" valign="middle"><label for="noidung"></label>
      <textarea name="noidung" id="noidung" cols="50" rows="5" ></textarea></td>
    </tr>
    

  <tr>
    <td><center>
      <label><input type="submit" name="DANG" value="Gửi" onclick="return checkform()" /></label>
      <label> <input type="reset" name="Submit2" value="Huỷ thông tin đã nhập" /></label>
     </center></td>
  </tr>
</table></div></center>
</form>


